{layout name="common/layout" /}
{css href="__PUBLIC__/admin/js/bootstrap-daterangepicker/daterangepicker.css"}
{js href="__PUBLIC__/admin/js/bootstrap-daterangepicker/moment.min.js,__PUBLIC__/admin/js/bootstrap-daterangepicker/daterangepicker.js" /}
<section class="panel">
    <header class="panel-heading">
        订单列表 <span class="label label-default">3</span><a class="btn btn-default tools pull-right" href="javascript:location.reload();"><span class="fa fa-refresh"></span></a>
    </header>
    <div class="panel-body">
        <div class="adv-table">
            <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline" role="grid">
                <div class="row">
                    <form method="get">
                        <div class="col-xs-5 btn-group">
                            <select class="form-control">
                                <option>支付方式</option>
                                <option>余额</option>
                                <option>货到付款</option>
                                <option>其他</option>
                            </select>
                            <select class="form-control">
                                <option>不按时间</option>
                                <option>下单时间</option>
                                <option>付款时间</option>
                                <option>发货时间</option>
                                <option>完成时间</option>
                            </select>
                            <input type="hidden" name="start_time" value="{:date('Y-m-d 00:00')}"/>
                            <input type="hidden" name="end_time" value="{:date('Y-m-d 23:59')}"/>
                            <input type="button" name="ordertime" class="form-control " placeholder="按时间搜索" style="font-size: 12px;width: 240px;" >
                        </div>
                        <div class="col-xs-7">
                            <select name="searchfield" class="form-control " style="width:95px;padding:0 5px;">
                                <option value="ordersn">订单号</option>
                                <option value="member">会员信息</option>
                                <option value="reciver">收件人</option>
                                <option value="expresssn">快递单号</option>
                                <option value="goodstitle">商品名称</option>
                                <option value="goodssn">商品编码</option>
                            </select>
                            <input type="text" name="key" class="form-control" placeholder="关键词">
                            <button type="submit" class="btn btn-default ">搜索</button>
                            <a class="btn btn-success ">导出</a>
                        </div>
                    </form>
                </div>
                <hr/>
                {php} if(!empty($orderlist)){ {/php}
                <table class="table">
                    <thead>
                    <tr role="row">
                        <th>商品</th>
                        <th>单价/数量</th>
                        <th>买家</th>
                        <th>支付/配送</th>
                        <th>价格</th>
                        <th>下单时间</th>
                        <th>状态/操作</th>
                    </tr>
                    </thead>
                    <tbody >
                    <tr>
                        <td colspan="4">
                            订单编号:  SH20161220122525326743
                        </td>
                        <td colspan="4" style="text-align:right;font-size:12px;" >
                            <a class="op" href="javascript:void(0);">查看详情</a>
                            <a class="op" href="javascript:void(0);">备注</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <div class="row-fluid">
                    <div class="span6 pull-right">
                        {$pagesion}
                    </div>
                </div>
                {php} }else{ {/php}
                <div class="row text-center">暂无订单....</div>
                {php} } {/php}
            </div>
        </div>
    </div>
</section>
<script type="text/javascript">
    $(document).ready(function () {
        dateInit('input[name="ordertime"]', 'input[name="start_time"]', 'input[name="end_time"]',{opens:'right'});
    });
</script>
